import request from '@/utils/request'

export function getProbeByUserId(userId) {
  return request({
    url: '/shike3k/probe/getProbeByUserId/' + userId,
    method: 'get'
  })
}

export function getProbeInfo(probeId) {
  return request({
    url: 'shike3k/web/freezer/getProbeInfo/' + probeId,
    method: 'get'
  })
}

export function getProbeTemperatures(id) {
  return request({
    url: '/shike3k/probe/getProbeTemperatures',
    params: { id },
    method: 'get'
  })
}

export function getOpenTimesday(probeId) {
  return request({
    url: '/shike3k/web/freezer/getOpenTimes/day/' + probeId,
    method: 'get'
  })
}
export function getOpenTimesmonth(probeId) {
  return request({
    url: '/shike3k/web/freezer/getOpenTimes/month/' + probeId,
    method: 'get'
  })
}
